<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{doc.title}}</title>
    <!-- 从 CDN 引入 Bootstrap 样式 -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">

    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column; /* 垂直方向排列 */
        }

    </style>
</head>
<body>
    <div class="container mt-5">
        <div id="basic" class="text-center">
            <h1 class="display-4" style="font-size: 40px;">{{doc.title}}</h1>
            <p class="lead">{{doc.datetime}}</p>
            <p class="font-weight-bold"><a href="{{doc.url}}" target="_blank">{{doc.url}}</a></p>
        </div>
        <hr class="my-4">
        <div id="detail" class="text-center">
            <div class="container">
                <div class="row justify-content-center">
                    <div class="col-lg-8">
                        <p class="lead" style="font-size: 18px;">{{doc.body}}</p>
                    </div>
                </div>
            </div>
        </div>
        <hr class="my-4">
    </div>

    <!-- 从 CDN 引入 Bootstrap 的 JavaScript 文件和 Popper.js -->
    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
</body>
</html>
